package com.wyix.domain;

/**
 * @author wangdx
 * @since 2025/8/5
 */
public class Pet {
    private String name;    // 名字
    private int age;        // 年龄
    private String type;    // 类型（猫/狗/兔子）
    private boolean isVaccinated;  // 是否接种疫苗

    // 构造方法
    public Pet(String name, int age, String type, boolean isVaccinated) {
        this.name = name;
        this.age = age;
        this.type = type;
        this.isVaccinated = isVaccinated;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isVaccinated() {
        return isVaccinated;
    }

    public void setVaccinated(boolean vaccinated) {
        isVaccinated = vaccinated;
    }

    // getter/setter 省略
    @Override
    public String toString() {
        return "Pet{" + "name='" + name + '\'' + ", age=" + age + ", type='" + type + '\'' + '}';
    }
}
